package com.vincent.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vincent.entity.User;
import com.vincent.mapper.UserMapper;
import com.vincent.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService extends ServiceImpl<UserMapper, User> implements IUserService {
    @Resource
    private IUserService hrService;

    @Override
    public User selUsername(String name) {
        return this.baseMapper.selectOne(new QueryWrapper<User>().eq("username",name));
    }
}
